package com.itheima.stock.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @Author:gzc
 * @Date: 2025/11/09 21:55
 * @Description:
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class StockExcelDomain {
    /**
     * 交易量
     */
    @ExcelProperty(value = "交易总量",index = 7)
    private Long tradeAmt;
    /**
     * 前收盘价
     */
    @ExcelProperty(value = "前收盘价",index = 2)
    private BigDecimal preClosePrice;
    /**
     * 振幅
     */
    @ExcelProperty(value = "振幅",index = 6)
    private BigDecimal amplitude;
    /**
     * 股票编码
     */
    @ExcelProperty(value = "股票编码",index = 0)
    private String code;
    /**
     * 名称
     */
    @ExcelProperty(value = "股票名称",index = 1)
    private String name;
    /**
     * 日期
     */
    @ExcelProperty(value = "日期",index = 9)
    private String curDate;
    /**
     * 交易金额
     */
    @ExcelProperty(value = "交易金额",index = 8)
    private BigDecimal tradeVol;
    /**
     * 涨幅
     */
    @ExcelProperty(value = "涨幅",index = 5)
    private BigDecimal increase;

    /**
     * 涨跌
     */
    @ExcelProperty(value = "涨跌",index = 4)
    private BigDecimal upDown;
    /**
     * 当前价格
     */
    @ExcelProperty(value = "当前价格",index = 3)
    private BigDecimal tradePrice;
}
